package org.company.earth.arithmetic;

import java.util.LinkedList;
import java.util.List;

/**
 * 树结构的节点
 * @ClassName:Node.java
 * Title:
 * Description:
 * Copyright:Copyright(c)2012
 * Company:www.si-tech.com.cn
 * @author:hucw
 * @date:2012-10-12
 * @version 1.0
 */
public class TreeNode<T> {
	private TreeNode<T> parent;
	private List<TreeNode<T>> children;
	private T data;
	
	public TreeNode() {
		this.data = null;
		this.parent = null;
		this.children = null;
	}
	
	public TreeNode<T> getParent() {
		return parent;
	}
	public void setParent(TreeNode<T> parent) {
		this.parent = parent;
	}
	public List<TreeNode<T>> getChildren() {
		return children;
	}
	public void setChildren(List<TreeNode<T>> children) {
		this.children = children;
	}
	public T getData() {
		return data;
	}
	public void setData(T data) {
		this.data = data;
	}
}
